<%-- 
    Document   : create
    Created on : Oct 4, 2012, 10:17:29 AM
    Author     : Daniel
--%>

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    </head>
    <body>
        <h1>Choose your search criteria</h1>
        
        <form:form method="POST" commandName="search">
            
            
            <table border="1">
               <tr>
                   <%--      <td> Name:</td>
                        <td><form:input path="name" />
                        </td>   
                       
                    <tr> 
                        <td>Surname :</td>
                        <td><form:input path="surname" />
                        </td>
                    </tr>
                    <tr> 
                     <tr>
                        <td>Skills</td>
                        <td><select name="skillmatrix">
                                <option>Java</option>
                                <option>Net</option>
                            </select></td>
                    </tr> 
                    <tr>
                        <td>Role</td>
                        <td><select name="role">
                                <option>Senior</option>
                                <option>Junior</option>
                            </select></td>
                    </tr>
                    <tr>
                        <td>Name</td>
                     --%>
                    </tr>
                
            </table>
            <input type="submit" value="submit" />             
        </form:form>
        <table border="1">
            <tr>
                <th>Employee ID</th>
                <th>Name </th>
                <th>Role proposed</th>
            </tr>
            <tbody>
                <c:forEach var="employee" items="${results}">

                    <tr>
                       <td>${employee.idEmployee}</td>
                         <td>${employee.name}</td>
                        <td>${employee.roleproposed}</td>
                       
                    </tr>  


                </c:forEach>
            </tbody>
        </table>
        
    </body>
</html>





